package com.antis.olsl.library.response;

import android.text.TextUtils;

import java.io.Serializable;

public class SalesroomOrWarehouseInfo implements Serializable {
    private String id;
    private String name;

    private boolean choose = false;
    private String warehouseName;
    private String salesroomName;
    private String shopownerName;
    private String salesroomAddr;
    private String salesroomPhone;

    private String warehouseAddr;
    private String linkMan;
    private String linkManTel;
    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getWarehouseAddr() {
        return !TextUtils.isEmpty(warehouseAddr) ? warehouseAddr : "";
    }

    public void setWarehouseAddr(String warehouseAddr) {
        this.warehouseAddr = warehouseAddr;
    }

    public String getLinkMan() {
        return !TextUtils.isEmpty(linkMan) ? linkMan : "";
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    public String getLinkManTel() {
        return !TextUtils.isEmpty(linkManTel) ? linkManTel : "";
    }

    public void setLinkManTel(String linkManTel) {
        this.linkManTel = linkManTel;
    }

    public String getShopownerName() {
        return !TextUtils.isEmpty(shopownerName) ? shopownerName : "";
    }

    public void setShopownerName(String shopownerName) {
        this.shopownerName = shopownerName;
    }

    public String getSalesroomAddr() {
        return !TextUtils.isEmpty(salesroomAddr) ? salesroomAddr : "";
    }

    public void setSalesroomAddr(String salesroomAddr) {
        this.salesroomAddr = salesroomAddr;
    }

    public String getSalesroomPhone() {
        return !TextUtils.isEmpty(salesroomPhone) ? salesroomPhone : "";
    }

    public void setSalesroomPhone(String salesroomPhone) {
        this.salesroomPhone = salesroomPhone;
    }

    public String getSalesroomName() {
        return salesroomName;
    }

    public void setSalesroomName(String salesroomName) {
        this.salesroomName = salesroomName;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        if (!TextUtils.isEmpty(name)) {
            return name;
        } else if (!TextUtils.isEmpty(salesroomName)) {
            return salesroomName;
        } else {
            return warehouseName;
        }
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isChoose() {
        return choose;
    }

    public void setChoose(boolean choose) {
        this.choose = choose;
    }
}
